﻿@{
    ViewBag.Title = "Level3Edit";
}

@section style
{
    <link href="/Content/bootstrap/css/bootstrap.css" rel="stylesheet">
}

@section scripts{
    <script src="/Content/bootstrap/js/bootstrap.js"></script>
}
<ol class="breadcrumb">
    <li><a href="/home">Home</a></li>
    <li><a href="/settings/dimension">Setting</a></li>
    <li><a href="/settings/Level2">Level-2</a></li>
    <li><a href="/settings/Level3">Level-3</a></li>
    @if (!string.IsNullOrEmpty(ViewBag.Model.Id) && ViewBag.Model.Id != "0")
    {
        <li class="active">Edit:@ViewBag.Model.Id</li>
    }
    else
    {
        <li class="active">New</li>
    }
</ol>
<div class="content">
    <form class="form-horizontal" role="form" action="/Settings/Level3Save" method="post">
        <div class="bs-example">
            <input type="hidden" name="Id" value="@ViewBag.Model.Id" />
            <div class="form-group">
                <label class="col-xs-2 control-label">Regex Name: </label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" placeholder="Regex Name" name="Regex_NM" value="@ViewBag.Model.Regex_NM">
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-2 control-label">Regex Format: </label>
                <div class="col-xs-6">
                    <textarea class="form-control" rows="15" cols="40" placeholder="Regex Format" name="Regex_Format">@ViewBag.Model.Regex_Format</textarea>
                </div>
            </div>

        </div>
        <div class="highlight text-right">
            <button type="submit" class="btn btn-success">Save</button>
            <a href="\Settings\Level3" class="btn btn-danger">Cancel</a>
        </div>
    </form>
</div>

